<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">编辑测点</h4>
</div>
<form id="defaultForm" method="post" class="form-horizontal" action="/project/indexManage/index_save">
    <div class="modal-body">

        <div class="form-group">
            <label class="col-lg-3 control-label">编号</label>
            <div class="col-lg-6">
                <input type="text" class="form-control" name="code"/>
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">名称</label>
            <div class="col-lg-6">
                <input type="text" class="form-control" name="name"/>
            </div>
        </div>


        <div class="form-group">
            <label class="col-lg-3 control-label">适用对象</label>
            <div class="col-lg-6">
                <select class="form-control" name="objName">
                    <option th:each="parameter:${objNames}" th:value="${parameter.code}"
                            th:text="${parameter.name}"></option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">所属类别</label>
            <div class="col-lg-6">
                <select class="form-control" name="objType">
                    <option th:each="parameter:${objTypes}" th:value="${parameter.code}"
                            th:text="${parameter.name}"></option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">数据类型</label>
            <div class="col-lg-6">
                <select class="form-control" name="propertyType">
                    <option th:each="parameter:${propertyTypes}" th:value="${parameter.code}" th:text="${parameter.name}">
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">单位</label>
            <div class="col-lg-6">
                <input type="text" class="form-control" name="unit"/>
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">来源</label>
            <div class="col-lg-6">
                <select class="form-control" name="source">
                    <option th:each="parameter:${sources}" th:value="${parameter.code}" th:text="${parameter.name}">
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">是否展示</label>
            <div class="col-lg-6">
                <div class="checkbox">
                    <label>
                        <input type="checkbox" name="isShow" value="0" onclick="this.value=(this.value==0)?1:0">
                    </label>
                </div>
            </div>
        </div>


    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary">保存</button>
    </div>
</form>

<script>
    initCheck();
</script>